FROM openjdk:11-oracle
ENV TimeZone=Asia/Shanghai
COPY maven /work/
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime
RUN echo $TimeZone > /etc/timezone
HEALTHCHECK --interval=5m --timeout=3s --start-period=30m --retries=3 CMD http://localhost:${tomcat.port}/actuator/health
CMD java -jar -Dresource.storage.type=NONE /work/yss-dmscheduler-admin-3.1.9.jar
